Skip to main content

vaccinator

Table Name: vaccinator

The vaccinator table stores information about vaccinators, including their personal details, work-related details, and tracking preferences. This table has relationships with other tables, such as user, organization, idmapper, and vaccinationcenter.


Columns

Column NameData TypeConstraintsDescription
mappedIdint(11)Primary Key, Foreign KeyUnique identifier for the vaccinator, linked to the idmapper table.
birthdatedatetimeThe vaccinator's date of birth.
createdDatedatetimeThe date when the vaccinator's record was created.
dateRegistereddatetimeThe date when the vaccinator was registered.
descriptionvarchar(255)Additional description or notes about the vaccinator.
designationvarchar(50)The vaccinator's designation or role.
domicilevarchar(30)The domicile or residential region of the vaccinator.
estimatedBirthdatetinyint(1)Indicates whether the birthdate is estimated (1 for true, 0 for false).
firstNamevarchar(30)The vaccinator's first name.
gendervarchar(15)The gender of the vaccinator.
lastEditedDatedatetimeThe date when the record was last edited.
lastNamevarchar(30)The vaccinator's last name.
middleNamevarchar(30)The vaccinator's middle name.
nicvarchar(20)National Identity Card number of the vaccinator.
nicOwnerFirstNamevarchar(30)First name of the NIC owner (if different from the vaccinator).
nicOwnerLastNamevarchar(30)Last name of the NIC owner.
nicOwnerRelationsmallint(6)Relationship of the NIC owner to the vaccinator.
qualificationvarchar(50)The vaccinator's qualifications.
vaccinationCenterIdint(11)Foreign KeyID of the vaccination center the vaccinator is associated with.
createdByUserIdint(11)Foreign KeyID of the user who created the vaccinator's record.
lastEditedByUserIdint(11)Foreign KeyID of the user who last edited the vaccinator's record.
epAccountNumbervarchar(30)EP account number of the vaccinator.
workgrouptypeIdvarchar(45)Identifier for the workgroup type the vaccinator belongs to.
voidedtinyint(1)Default 0Indicates if the record is voided (1 for true, 0 for false).
voidedReasonvarchar(50)Reason for voiding the record.
organizationIdint(11)Foreign KeyID of the organization the vaccinator is associated with.
voidedDatedatetimeDate when the record was voided.
IMEINumbervarchar(30)IMEI number of the vaccinator's device.
isGSMTrackingEnabledtinyint(1)Indicates if GSM tracking is enabled for the vaccinator.
latitudeTowervarchar(45)Latitude of the vaccinator's tower location.
longitudeTowervarchar(45)Longitude of the vaccinator's tower location.
isManualTrackingEnabledtinyint(1)Default 0Indicates if manual tracking is enabled for the vaccinator.

Indexes

  1. Primary Key:
    • mappedId: Ensures each vaccinator has a unique identifier.
  2. Foreign Keys:
    • FK224E4406C79271AF: Links mappedId to the idmapper table.
    • vaccinator_vaccinationCenterId_vaccinationcenter_mappedId_FK: Links vaccinationCenterId to the vaccinationcenter table.
    • vaccinator_createdByUserId_user_mappedId_FK: Links createdByUserId to the user table.
    • vaccinator_lastEditedByUserId_user_mappedId_FK: Links lastEditedByUserId to the user table.
    • organization_vaccinator: Links organizationId to the organization table.

Foreign Key Relations

  1. FK224E4406C79271AF:
    • Referenced Table: idmapper
    • Referenced Column: mappedId
    • Description: Ensures the mappedId exists in the idmapper table.
  2. vaccinator_vaccinationCenterId_vaccinationcenter_mappedId_FK:
    • Referenced Table: vaccinationcenter
    • Referenced Column: mappedId
    • Description: Links the vaccinator to a specific vaccination center.
  3. vaccinator_createdByUserId_user_mappedId_FK:
    • Referenced Table: user
    • Referenced Column: mappedId
    • Description: Links the vaccinator's creation to a specific user.
  4. vaccinator_lastEditedByUserId_user_mappedId_FK:
    • Referenced Table: user
    • Referenced Column: mappedId
    • Description: Links the last edit of the vaccinator's record to a specific user.
  5. organization_vaccinator:
    • Referenced Table: organization
    • Referenced Column: organizationId
    • Description: Links the vaccinator to a specific organization.

Usage Notes

  • Purpose:
    • This table is crucial for tracking vaccinators' information, their association with vaccination centers, and their organizational details.
  • Tracking:
    • Includes features for GSM and manual tracking to monitor vaccinator activities.